<% 
// 页面单独依赖的css、js
var cssExt = [
        "/static/amazeui/datatables/amazeui.datatables.min.css"
    ];
var jsExt = [
        "/static/amazeui/datatables/amazeui.datatables.min.js",
        "/static/laytpl/laytpl.js",
        "/static/admin/data_tables.js"
    ];
%>
<% layout("_layout.html", {blogOpen:true, title:'博文管理', cssExt: cssExt, jsExt: jsExt}){ %>
<div class="admin-content">
    <div class="am-cf am-padding">
      <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">博客</strong> / <small>文章管理</small></div>
    </div>

    <div class="am-g">
      <div class="am-u-sm-12">
          <table class="am-table am-table-striped am-table-bordered am-table-compact" id="example">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>标题</th>
                    <th>内容</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tfoot>
                <tr>
                    <th>ID</th>
                    <th>标题</th>
                    <th>内容</th>
                    <th>操作</th>
                </tr>
            </tfoot>
        </table>
    </div>
    </div>
</div>
<script id="tpl_edit" type="text/html" data-width="680px" data-height="380px">
<form class="am-form">
  <div class="am-g am-margin-top">
    <div class="am-u-sm-4 am-u-md-2 am-text-right">文章标题</div>
    <div class="am-u-sm-8 am-u-md-4">
      <input type="text" name="" class="am-input-sm" value="{{d.title}}">
    </div>
    <div class="am-hide-sm-only am-u-md-6">*必填，不可重复</div>
  </div>
  <div class="am-g am-margin-top-sm">
    <div class="am-u-sm-12 am-u-md-2 am-text-right admin-form-text">
      内容描述
    </div>
    <div class="am-u-sm-12 am-u-md-10">
      <textarea rows="10" placeholder="请使用富文本编辑插件">{{d.content}}</textarea>
    </div>
  </div>
  <div class="am-g am-margin-top-sm">
    <div class="am-u-sm-12 am-u-md-2 am-text-right admin-form-text"></div>
    <div class="am-u-sm-12 am-u-md-10">
      <input type="submit" value="提交">
    </div>
  </div>
</form>
</script>
<% } %>